package org.suyafei.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.suyafei.utils.JsonData;

/**
 * @author 宿某人
 * @Date: 2022/03/24/11:30
 * @Description:
 */
@FeignClient(name = "scloud-link-service")
public interface ShortLinkFeignService {

    /**
     * 查询短链是否存在
     *
     * @param shortLinkCode
     * @return
     */
    @GetMapping(value = "/api/link/v1/check",headers = {"rpc-token=${rpc.token}"})
    JsonData check(@RequestParam("shortLinkCode") String shortLinkCode);
}
